{%if $pager%}
<style type="text/css">
    .pagers {
        font-family: Arial, Helvetica, sans-serif;
        height: 24px;
        line-height: 24px;
        padding: 20px 10px;
        text-align: center;
        font-size: 14px;
    }

    .pagers span{
        font-size: 14px;
    }

    .pagers a {
        border: 1px solid #D1E1E0;
        color: #1D7591;
        font-size: 14px;
    }

    .pagers a, .pagers strong {
        margin: 0 2px;
        font-size: 14px;
        padding: 2px 5px;
    }

</style>

<div class="pagers">
    <span>当前第 {%$pager.start%}-{%$pager.end%}条/共{%$pager.total%}条 : </span>
    {%if $pager.firstpage.uri%}
    <a href="{%$pager.firstpage.uri%}">首页«</a>
    {%/if%}
    {%if $pager.prepage.uri%}
    <a href="{%$pager.prepage.uri%}">«</a>
    {%/if%}
    {%foreach item = p from=$pager.pagebody%}
    {%if $p.current%}
    <strong>{%$p.index%}</strong>
    {%else%}
    <a href="{%$p.uri%}">{%$p.index%}</a>
    {%/if%}
    {%/foreach%}
    {%if $pager.nextpage.uri%}
    <a href="{%$pager.nextpage.uri%}">»</a>
    {%/if%}
    {%if $pager.lastpage.uri%}
    <a href="{%$pager.lastpage.uri%}">最后 »</a>
    {%/if%}
</div>
{%/if%}
